package yf.mall.vo.up;


import lombok.Data;

import java.util.Date;

import com.alibaba.excel.annotation.*;

import java.io.Serializable;


import java.math.BigDecimal;

import yf.mall.entity.GoodsGroupEntity;
import yf.mall.vo.GoodsGroupVo;

                            
/**
 * 团购发起实体
 * 表名 goods_group
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Sun Sep 25 10:16:00 CST 2022
 */
@Data
public class GoodsGroupUp implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //用户Id
            @ExcelProperty("用户Id")
            private Long userId;
        
                        //产品ID
            @ExcelProperty("产品ID")
            private Long goodsId;
        
                        //用户编号
            @ExcelProperty("用户编号")
            private String userCode;
        
                        //用户名字
            @ExcelProperty("用户名字")
            private String userName;
        
                        //IMG-微信二维码
            @ExcelProperty("IMG-微信二维码")
            private String userWxQr;
        
                        //利润
            @ExcelProperty("利润")
            private String profit;
        
    
    public GoodsGroupUp() {

    }

    public GoodsGroupVo toVo() {

        GoodsGroupEntity entity = new GoodsGroupEntity();
            GoodsGroupVo vo = new GoodsGroupVo(entity);
                                    entity.setId(id);
            
                                    entity.setUserId(userId);
            
                                    entity.setGoodsId(goodsId);
            
                                    entity.setUserCode(userCode);
            
                                    entity.setUserName(userName);
            
                                    entity.setUserWxQr(userWxQr);
            
                                    entity.setProfit(profit);
            
        
        return  vo;
    }



}
